<?
	require_once('init.php');
	require_once('dataModel.php');
	
	$_SESSION["MenuID"]='M2';

	if( isset( $_REQUEST['width']))	
	{
		$width=$_REQUEST["width"];
	}
	else
	{
		$width='600';	
	}
	
	if( isset( $_REQUEST['height']))	
	{
		$height=$_REQUEST["height"];
	}
	else
	{
		$height='500';	
	}

	if( isset( $_REQUEST['bgcolor']))	
	{
		$bgcolor=$_REQUEST["bgcolor"];
	}
	else
	{
		$bgcolor='000000';
	}
	
	if( isset( $_REQUEST['preview']))	
	{
		$preview=$_REQUEST["preview"];
	}
	else
	{
		$preview='1';
	}?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
	<meta http-equiv="Content-Type" content="text/html; charset=<?='utf-8';?>" />
	<meta name="keywords" content="穿越门,视频,穿越,聊天室,对话,中国第一" />
	<meta name="description" content="穿越之门--带您穿越" />
	<meta name="copyright" content="Copyright (c) 2011 www.aidDoor.com All Rights Reserved." />
	<meta name="publisher" content="Copyright (c) 2010 www.aidDoor.com All Rights Reserved." />
	<meta name="author" content="aidDoor Team" />
	<!--meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/-->
	
	<TITLE><?='穿越之门';?></TITLE> 

	<link href="css/main.css" rel="stylesheet" type="text/css" />

	<script language="javascript">
		function goback(gwidth,gheight,gcolor)
		{
//			   alert("getcode04.php?width="+gwidth+"&height="+gheight+"&bgcolor="+gcolor);
			location="getcode04.php?width="+gwidth+"&height="+gheight+"&bgcolor="+gcolor;
		}		
	</script>
	 
</head>

	<body>
		<?
		include("header.php"); 
		
		if ($preview=="1")
		{
		?>
        	<div style="width:<?=$width;?>px;height:30px;margin:0px auto;margin-top:20px;border:0px solid red;">
	        	<div style="float:left;width:120px;height:30px;text-align:left;line-height:30px;border:0px solid red;"><b>预览结果</b></div>
	        	<input style="float:right;" type="image" name="bt_goback" value="bt_goback" src="images/go_btn.gif" onmouseout="this.src='images/go_btn.gif'" onmouseover="this.src='images/go_btn-hover.gif'" onclick="goback('<?=$width;?>','<?=$height;?>','<?=$bgcolor;?>');" >
			</div>
        <?
    	}
    	else
    	{
    	?>
        	<div style="width:<?=$width;?>px;height:30px;text-align:center;margin:0px auto;margin-top:20px;line-height:30px;border:0px solid red;"><b>客服聊天室</b></div>
    	<?
    	}
        ?>	
		<div style="width:<?=$width;?>px;height:<?=$height;?>px;text-align:center;margin:0px auto;border:0px solid red;">
		<?		
			if ($_SESSION["UID"]!='')
			{
		?>
				<iframe src="http://www.aiddoor.com/anydoor/bWelcome.php?uid=<?=$_SESSION["UID"];?>&w=<?=$width;?>&h=<?=$height;?>&bgcolor=<?=$bgcolor;?>" marginheight="0" marginwidth="0" style="border:0px;width:<?=$width;?>px;height:<?=$height;?>px;padding:0px;margin:0px;" scrolling="No" borderwidth="0">
				</iframe>
		<?	
			}
		?>
		
		</div> 
		
		<?
		include("footer.php"); 
		?>
	</body>		
</html>